home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / chesswin.lha / windows / chess.rc < prev    next >
Text File  |  1990-12-29  |  7KB  |  178 lines

  1. /*
  2.   C source for GNU CHESS
  3.  
  4.   Revision: 1990-09-30
  5.  
  6.   Modified by Daryl Baker for use in MS WINDOWS environment
  7.  
  8.   This file is part of CHESS.
  9.  
  10.   CHESS is distributed in the hope that it will be useful, but WITHOUT ANY
  11.   WARRANTY.  No author or distributor accepts responsibility to anyone for
  12.   the consequences of using it or for whether it serves any particular
  13.   purpose or works at all, unless he says so in writing.  Refer to the CHESS
  14.   General Public License for full details.
  15.  
  16.   Everyone is granted permission to copy, modify and redistribute CHESS, but
  17.   only under the conditions described in the CHESS General Public License.
  18.   A copy of this license is supposed to have been given to you along with
  19.   CHESS so you can know your rights and responsibilities.  It should be in a
  20.   file named COPYING.  Among other things, the copyright notice and this
  21.   notice must be preserved on all copies.
  22. */
  23.  
  24. #include <windows.h>
  25. #include "chess.h"
  26.  
  27. CHESS  ICON   "Chess.ico"
  28.  
  29.  
  30. PAWN    BITMAP "pawn.bmp"
  31. ROOK    BITMAP "rook.bmp"
  32. KNIGHT  BITMAP "knight.bmp"
  33. BISHOP  BITMAP "bishop.bmp"
  34. QUEEN   BITMAP "queen.bmp"
  35. KING    BITMAP "king.bmp"
  36.  
  37. PAWNM   BITMAP "pawnm.bmp"
  38. ROOKM   BITMAP "rookm.bmp"
  39. KNIGHTM BITMAP "knightm.bmp"
  40. BISHOPM BITMAP "bishopm.bmp"
  41. QUEENM  BITMAP "queenm.bmp"
  42. KINGM   BITMAP "kingm.bmp"
  43.  
  44. PAWNO   BITMAP "pawno.bmp"
  45. ROOKO   BITMAP "rooko.bmp"
  46. KNIGHTO BITMAP "knighto.bmp"
  47. BISHOPO BITMAP "bishopo.bmp"
  48. QUEENO  BITMAP "queeno.bmp"
  49. KINGO   BITMAP "kingo.bmp"
  50.  
  51. #include "about.dlg"
  52.  
  53. #include "saveopen.h"
  54. #include "saveopen.dlg"
  55.  
  56. #include "getnum.dlg"
  57.  
  58. #include "color.h"
  59. #include "color.dlg"
  60.  
  61. #include "timecnt.h"
  62. #include "timecnt.dlg"
  63.  
  64. #include "stats.h"
  65. #include "stats.dlg"
  66.  
  67. #include "review.dlg"
  68. #include "test.dlg"
  69. #include "promote.dlg"
  70.  
  71. CHESS MENU Begin
  72.         POPUP "&File"
  73.               Begin
  74.                   MENUITEM "&New",                        MSG_CHESS_NEW
  75.                   MENUITEM "&Open...",                    MSG_CHESS_GET
  76.                   MENUITEM "&Save...",                    MSG_CHESS_SAVE
  77.                   MENUITEM "&List...",                    MSG_CHESS_LIST
  78.                   MENUITEM SEPARATOR
  79.                   MENUITEM "E&xit",                       MSG_CHESS_QUIT
  80.               END
  81.  
  82.         POPUP "&Edit"
  83.               BEGIN
  84.                 MENUITEM "&Setup Board",                  MSG_CHESS_EDIT
  85.                 MENUITEM "R&eview Game...",               MSG_CHESS_REVIEW
  86.                 MENUITEM SEPARATOR
  87.                 MENUITEM "&Undo",                         MSG_CHESS_UNDO
  88.                 MENUITEM "&Remove",                       MSG_CHESS_REMOVE
  89.                 MENUITEM SEPARATOR
  90.                 MENUITEM "&Force",                        MSG_CHESS_FORCE
  91.               END
  92.  
  93.         POPUP "&Options"
  94.                 BEGIN
  95.                   MENUITEM "&Tone"                        MSG_CHESS_BEEP
  96.                   MENUITEM "C&oordinates",                MSG_CHESS_COORD
  97.                   MENUITEM "&Search Stats",               MSG_CHESS_POST
  98.                   MENUITEM "T&est Speed",                 MSG_CHESS_TEST      
  99.                   MENUITEM SEPARATOR
  100.                   MENUITEM "&Hash"                        MSG_CHESS_HASH
  101.                   MENUITEM "&Both"                        MSG_CHESS_BOTH
  102.                   MENUITEM "Boo&k"                        MSG_CHESS_BOOK
  103.                   MENUITEM SEPARATOR
  104.                   MENUITEM "&A Window..."                 MSG_CHESS_AWIN
  105.                   MENUITEM "&B Window..."                 MSG_CHESS_BWIN
  106.                   MENUITEM "&Contemp..."                  MSG_CHESS_CONTEMP
  107.                 END
  108.  
  109.         POPUP "&Skill"
  110.                 BEGIN             
  111.                   MENUITEM "&Time...",                    IDM_TIMECONTROL
  112.                   MENUITEM SEPARATOR                      
  113.                   MENUITEM "&Random",                     MSG_CHESS_RANDOM
  114.                   MENUITEM "&Easy",                       MSG_CHESS_EASY
  115.                   MENUITEM "&Depth...",                   MSG_CHESS_DEPTH
  116.               END
  117.  
  118.         POPUP "S&ide"
  119.               BEGIN
  120.                   MENUITEM "&Reverse",                    MSG_CHESS_REVERSE
  121.                   MENUITEM "&Switch",                     MSG_CHESS_SWITCH
  122.                   MENUITEM "&Black",                      MSG_CHESS_BLACK
  123.                   MENUITEM "&White",                      MSG_CHESS_WHITE
  124.               END
  125.  
  126.         POPUP "&Colors"
  127.                 Begin
  128.                         Menuitem "Window Background",   IDM_BACKGROUND
  129.                         Menuitem "Black Squares",       IDM_BLACKSQUARE
  130.                         Menuitem "White Squares",       IDM_WHITESQUARE
  131.                         Menuitem "Black Pieces",        IDM_BLACKPIECE
  132.                         Menuitem "White Pieces",        IDM_WHITEPIECE
  133.                         Menuitem "Text Color",          IDM_TEXT
  134.                         Menuitem SEPARATOR
  135.                         Menuitem "Default Colors",      IDM_DEFAULT
  136.                 end
  137.  
  138.         MENUITEM "H&int",                                 MSG_CHESS_HINT
  139.  
  140.         POPUP "&Help"
  141.                 Begin
  142.                         Menuitem "&Index",               MSG_HELP_INDEX
  143.                         Menuitem "Using &Help",          MSG_HELP_HELP
  144.                         Menuitem SEPARATOR
  145.                         MENUITEM "A&bout Chess...",      MSG_CHESS_ABOUT
  146.                 end
  147.      END
  148.  
  149. STRINGTABLE
  150.  begin
  151.         IDS_CHESS,         "Chess"
  152.         IDS_ILLEGALMOVE,   "Illegal move"
  153.         IDS_AMBIGUOUSMOVE, "Ambiguous move"
  154.         IDS_OBAE,          "Warning: Opening book too large"
  155.         IDS_OBNF,          "Warning: Opening book not found"
  156.         IDS_UNABLESAVE,    "Unable to save game"
  157.         IDS_UNABLELIST,    "Unable to list game"
  158.         IDS_DRAWGAME,      "Draw Game"
  159.         IDS_YOUWIN,        "Opponent mates"
  160.         IDS_COMPUTERWIN,   "Computer mates"
  161.         IDS_MATESOON,      "Oppenent will soon mate"
  162.         IDS_COMPMATE,      "Computer will soon mate"
  163.         IDS_TTABLEAF,      "ttable Allocation Failed"
  164.         IDS_SQDATAAF,      "sqdata Allocation Failed"
  165.         IDS_HISTORYAF,     "History Allocation Failed"
  166.         IDS_TREEAF,        "Tree Allocation Failed"
  167.         IDS_GAMEAF,        "Game List Allocation Failed"
  168.         IDS_LOADFAILED,    "Loading saved game failed"
  169.         IDS_SETAWIN,       "Set A Window"
  170.         IDS_SETBWIN,       "Set B Window"
  171.         IDS_SETCONTEMPT,   "Set Contempt"
  172.         IDS_MAXSEARCH,     "Set maximun search depth"
  173.         IDS_INITERROR,     "Initialization error"
  174.  end
  175.  
  176.  
  177.  
  178.